Skip to content

feat: add info_filename field to sample_data table#175

Merged
SamratThapa120 merged 10 commits into
mainfrom
feat/schmea/sensor_info
Aug 28, 2025
Merged

feat: add info_filename field to sample_data table#175
SamratThapa120 merged 10 commits into
mainfrom
feat/schmea/sensor_info

Conversation

@SamratThapa120

@SamratThapa120 SamratThapa120 commented Aug 27, 2025

Copy link
Copy Markdown
Contributor

This pull request introduces a minor schema update to the SampleData class in t4_devkit/schema/tables/sample_data.py to support tracking additional metadata for each sample. The most important change is the addition of a new field for storing the relative path to associated metainfo data.

Schema enhancements:

  • Added a new string field info_filename to the SampleData class, which stores the relative path to metainfo data-blobs on disk. This field is now part of both the docstring and the class definition, with a default value of an empty string and appropriate type validation. [1] [2]

This field will point to the ConcatenatedPointCloudInfo file which contains information about the lidar indices, timestamps, and other meta info for the concatenated pointcloud.

References:

tier4/tier4_perception_dataset#255

Copilot AI review requested due to automatic review settings August 27, 2025 07:33
@github-actions github-actions Bot added the new-feature New feature or request label Aug 27, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new info_filename field to the SampleData schema class to support tracking metadata file paths for samples. The change enables the system to associate each sample with its corresponding metainfo data blob stored on disk.

  • Added info_filename string field with empty string default to SampleData class
  • Updated class docstring to document the new field's purpose
  • Implemented proper type validation using validators.instance_of(str)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread t4_devkit/schema/tables/sample_data.py Outdated

@ktro2828 ktro2828 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SamratThapa120 Thank you for PR! I left a comment about the default value of the new field. Please take a look.

Comment thread t4_devkit/schema/tables/sample_data.py Outdated
@github-actions github-actions Bot added the ci Continuous Integration (CI) processes and testing label Aug 28, 2025
@github-actions

github-actions Bot commented Aug 28, 2025

Copy link
Copy Markdown
Contributor

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
2400 1661 69% 50% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
t4_devkit/schema/tables/sample_data.py 100% 🟢
TOTAL 100% 🟢

updated for commit: 43de74b by action🐍

Comment thread t4_devkit/schema/tables/sample_data.py Outdated

@ktro2828 ktro2828 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@SamratThapa120 SamratThapa120 force-pushed the feat/schmea/sensor_info branch from 139386f to 43de74b Compare August 28, 2025 03:21
@SamratThapa120

Copy link
Copy Markdown
Contributor Author

@ktro2828 I cannot merge this branch, likely because of the main branch protection rules?

@ktro2828

Copy link
Copy Markdown
Collaborator

@SamratThapa120 I updated the branch rules, how about now?

@SamratThapa120 SamratThapa120 merged commit 09c8179 into main Aug 28, 2025
4 of 6 checks passed
@SamratThapa120 SamratThapa120 deleted the feat/schmea/sensor_info branch August 28, 2025 04:55
@SamratThapa120

Copy link
Copy Markdown
Contributor Author

@ktro2828 Thanks. Merged 😍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continuous Integration (CI) processes and testing new-feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants